package com.czxy.controller;


import com.czxy.domain.LinkMan;
import com.czxy.service.LinkManService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/linkMan")
public class LinkController {

    @Resource
    private LinkManService linkManService;


    @RequestMapping("/findByInfo")
    public  String  findByInfo(Integer pageNum, Integer pageSize , Model model, LinkMan linkMan){


        PageInfo byInfo = linkManService.findByInfo(pageNum,pageSize,linkMan);


        model.addAttribute("pageInfo",byInfo);


        return "linkman/list.jsp";

    }






}
